package org.sy.lab.Java7并发编程实战.二线程同步基础.一使用synchronized实现同步方法;

public class Bank implements Runnable {
	private Account account;
	public Bank(Account account) {
		this.account = account;
	}
	@Override
	public void run() {
		for(int i=0; i<100; i++) {
			account.subtractAmount(1000);
		}
	}
}
